package cn.wp.ewallet.common.web.controller;

import cn.wp.common.core.Wp;
import cn.wp.common.core.dto.WpResult;
import cn.wp.common.core.web.annotation.ClearInterceptor;
import cn.wp.common.core.web.interceptor.LoginInterceptor;
import cn.wp.ewallet.common.service.DocContentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "文档信息")
@RequestMapping(Wp.WebContext + "/ewallet/common/document")
public class DocumentController {

    @Autowired
    private DocContentService docContentService;

    @GetMapping("/getServiceInfo")
    @ApiOperation(value = "查看服务条款")
    public WpResult getServiceInfoList(String docId, String langCode) {
        return docContentService.getServiceInfoListByType(docId, langCode);

    }

}